/*
 * @Author: 余铖
 * @Date: 2021-04-29 19:44:37
 * @LastEditors: 余铖
 * @LastEditTime: 2021-04-30 17:52:49
 * @Description: 请输入文件说明
 */
import { get, post } from "./http.js";
import { baseUrl1 } from "./baseUrl";

// 获取未签收，未反馈的数量统计
export const getTaskCount = (param) =>
    get(baseUrl1, "/app/task/taskcount", param);
// 未签收 ，未反馈 已反馈
export const getTasklists = (param) =>
    post(baseUrl1, "/app/task/tasklists", param);
// 督查流程记录
export const getTaskrecordlog = (param) =>
    get(baseUrl1, "/app/task/taskrecordlog", param);
// 查询任务的反馈记录
export const getTaskrecord = (param) =>
    get(baseUrl1, "/app/task/taskrecord", param);
// 办结，退回重办接口
export const getHandletask = (param) =>
    post(baseUrl1, "/app/task/handletask", param);
// 承办单位反馈接口
export const getTaskBackNew = (param) =>
    post(baseUrl1, "/app/task/taskBackNew", param);
// 获取批转联系人
export const getEndorseList = (param) =>
    post(baseUrl1, "/app/user/endorseList", param);
// 保存批转
export const getSaveTaskUsert = (param) =>
    post(baseUrl1, "/app/task/saveTaskUser", param);

// 获取主任务
export const getMaintasklist = (param) =>
    post(baseUrl1, "/app/task/maintasklist", param);
// 根据主任务id获取子任务
export const getSubtasklist = (param) =>
    post(baseUrl1, "/app/task/subtasklist", param);

// 攻坚总任务
export const getGjtasklist = (param) =>
    post(baseUrl1, "/app/task/gjtasklist", param);
// 攻坚任务下的主任务
export const getGjmaintasklist = (param) =>
    post(baseUrl1, "/app/task/gjmaintasklist", param);
//   督查登陆成功后存储用户信息到缓存。
export const getSaveuser = (param) =>
    post(baseUrl1, "/app/user/saveuser", param);


// 督察首页数据
// 派发项目/完成项目
export const getTaskNum = (param) =>
    get(baseUrl1, "/app/home/taskNum", param);
// 事项类型统计
export const getTaskcatenum = (param) =>
    get(baseUrl1, "/app/home/taskcatenum", param);
// 总数/已反馈
export const getWeektask = (param) =>
    get(baseUrl1, "/app/home/weektask", param);
// 年度逾期单位
export const getOverduedept = (param) =>
    get(baseUrl1, "/app/home/overduedept", param);
// 更改任务状态
export const changetype = (param) =>
    post(baseUrl1, "/app/task/changetype", param);

/* 获取承办人 */
export const sameDeptUser = (param) => get(baseUrl1, "/app/inside/sameDeptUser", param);

/* 立项 */
export const insideSetup = (param) => post(baseUrl1, "/app/inside/setup", param);

/* 任务列表 */
export const insideTaskList = (param) => post(baseUrl1, "/app/inside/taskList", param);

/* 反馈记录 */
export const insideInsideBack = (param) => post(baseUrl1, "/app/inside/insideBack", param);

/* 反馈记 */
export const insideFeedback = (param) => post(baseUrl1, "/app/inside/feedback", param);

/* 内部立项-更改任务状态 */
export const insideChangstatue = (param) => post(baseUrl1, "/app/inside/changstatue", param);

/* 内部立项-办结 */
export const banjieRequest = (param) => post(baseUrl1, "/app/inside/finishTask", param);